package com.example.springfastjsonsample

import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping
class CarController {

    @RequestMapping(value = arrayOf("getCall"), method = arrayOf(RequestMethod.GET))
    fun getCar(): Car {
        return Car("比亚迪")
    }
}